<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 300px;
            color: #fff;
            background-color: #396;
            
            /*隐藏元素元素有4种*/
            display: none;
            visibility: hidden;
            opacity: 0;
            height: 0;
        }
    </style>
</head>
<body>
    <div class="box">
        <span>隐藏元素</span>
    </div>
</body>
</html>